import request from '@/utils/request'

// 查询字典商铺字段列表
export function listADictShops(query) {
  return request({
    url: '/system/aDictShops/list',
    method: 'get',
    params: query
  })
}

// 查询字典商铺字段详细
export function getADictShops(id) {
  return request({
    url: '/system/aDictShops/' + id,
    method: 'get'
  })
}

// 新增字典商铺字段
export function addADictShops(data) {
  return request({
    url: '/system/aDictShops',
    method: 'post',
    data: data
  })
}

// 修改字典商铺字段
export function updateADictShops(data) {
  return request({
    url: '/system/aDictShops',
    method: 'put',
    data: data
  })
}

// 删除字典商铺字段
export function delADictShops(id) {
  return request({
    url: '/system/aDictShops/' + id,
    method: 'delete'
  })
}

// 逻辑删除字典商铺字段
export function logicDelADictShops(id) {
  return request({
    url: '/system/aDictShops/logicDel/' + id,
    method: 'delete'
  })
}

export function allListMode() {
  return request({
    url: '/system/aDictShops/allList',
    method: 'get'
  })
}

export function listADictShopsFourList() {
  return request({
    url: '/system/aDictShops/fourList',
    method: 'get'
  })
}
